<%@page import="com.ksyzt.ksite2.server.database.dao.impl.VW_NEWSDAOImpl"%>
<%@page import="com.ksyzt.ksite2.server.database.dao.IVW_NEWSDAO"%>
<%@page import="com.ksyzt.ksite2.server.database.dao.impl.NEWSDAOImpl"%>
<%@page import="com.ksyzt.ksite2.server.database.dao.INEWSDAO"%>
<%@page import="com.ksyzt.ksite2.server.common.PageNaviData"%>
<%@page import="com.ksyzt.ksite2.shared.modle.VW_NEWSObj"%>
<%@page import="com.ksyzt.ksite2.shared.modle.VW_NEWSObjs"%>
<%@page import="com.ksyzt.ksite2.client.column.ColumnType"%>
<%@page import="com.ksyzt.ksite2.shared.modle.COLUMNObjs"%>
<%@page import="com.ksyzt.ksite2.shared.modle.COLUMNObj"%>
<%@page import="com.ksyzt.ksite2.shared.PageData"%>
<%@page import="com.ksyzt.ksite2.server.common.Application"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
	+ request.getServerName() + ":" + request.getServerPort()
	+ path + "/";
	Application app=new Application(request,response);
	PageData pd=app.getApplicationPageData();
	
	int viewtype=app.parameterAsInteger("viewtype", 0);
	int cid=app.parameterAsInteger("cid", 48);
	int nid=app.parameterAsInteger("nid", 0);
	int subcid=app.parameterAsInteger("subcid", -1);
	
	
	//根目录
	COLUMNObj column=app.getColumn(cid);
	
	VW_NEWSObj n=app.getNews(nid);
	
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=pd.getName()%>-<%=column.getNAME()%></title>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="<%=pd.getKeyWords()%>" />
<meta http-equiv="description" content="<%=pd.getSummary()%>" />
<link rel="stylesheet" type="text/css" href="css/comm.css" />
<style type="text/css">

.pagecontent {
	padding-top: 5px;
	float: left;
	width: 722px;
}

.piclist {
	padding-top:50px;
}

.piclist li {
	width: 229px;
	height: 310px;
	border: solid 1px #c0c0c0;
	margin: 4px;
	text-align: center;
	padding-top: 4px;
	display: inline-block;
	float: left;
	padding-top:10px;
}

.piclist li img {
	width: 210px;
	height: 240px;
	margin: 0px;
}

.piclist li div {
	padding: 4px;
	overflow: hidden;
	font-size: 12px;
	line-height: 26px;
	text-align: center;
	text-align: center;
	overflow: hidden;
}

.piclist .text {
	text-align: center;
	line-height: 26px;
	font-size: 14px;
}

.pic_tools {
	text-align: right;
	margin-right: 5px;
}

.pic_tools li {
	display: inline-block;
}

.pic_tools li div {
	display: inline-block;
	width: 33px;
	height: 33px;
	overflow: hidden;
}

.pic_btn_list {
	background-image: url("images/image_list.png");
	background-repeat: no-repeat;
}

.pic_btn_list:HOVER {
	background-image: url("images/image_list-over.png");
	background-repeat: no-repeat;
}

.pic_btn_view {
	background-image: url("images/image_view.png");
	background-repeat: no-repeat;
}

.pic_btn_view:HOVER {
	background-image: url("images/image_view-over.png");
	background-repeat: no-repeat;
}

.picview {
	text-align: center;
	position: relative;
}

.picview img {
	width: 700px;
	height: 400px;
	margin: 5px 11px;
}

.picview .pic_title {
	line-height: 26px;
	font-size: 14px;
	text-align: center;
	padding-bottom:10px;
	font-weight: bold;
	
}

.left_btn {
	position: absolute;
	left: 30px;
	top: 130px;
	background-image: url("images/left_arrow.png");
	background-repeat: no-repeat;
	width: 58px;
	height: 128px;
	overflow: hidden;
	cursor: pointer;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
	/* ie8  */
	filter: alpha(opacity =   50); /* ie5-7  */
	opacity: 0.5;
}

.right_btn {
	position: absolute;
	left: 630px;
	top: 130px;
	background-image: url("images/right_arrow.png");
	background-repeat: no-repeat;
	width: 58px;
	height: 128px;
	overflow: hidden;
	cursor: pointer;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
	/* ie8  */
	filter: alpha(opacity =   50); /* ie5-7  */
	opacity: 0.5;
}
.over
{
	border: solid 1px red;
}
</style>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.ksyzt.js"></script>
<script type="text/javascript">
	function load() {

		$(".stylish").makeStylish();		

	}
	$(document).ready(load);

</script>
</head>

<body>
	<div class="wrap">
		<div class="wrap_center">
			<jsp:include page="../include/top.jsp" />

			<table class="w_970" cellpadding="0" cellspacing="0" >
				<tr>
					<td class='left-back-td' valign="top" >
						<div class="left-back-top">
							<div class="stylish {css:'columnlist'}">
								<%=app.columnlist2html(cid,subcid)%>
							</div>
						</div>
					</td>
					<td valign="top">
					<div class="pagenavi">
						<div class='navibar-left'></div>
						<div class='navibar-middle'>
							<%=app.column2navi(column )%>
							<form style="display: inline;" action="news/search.jsp"
								method="get">
								<table style="float:right;margin-top: 4px;">
									<tr>
										<td><select name="type" class='search_select'>
												<option value="0" selected="selected">内容</option>
												<option value="1">标题</option>
										</select></td>
										<td><input name="w" type="text" value="" /></td>
										<td><input type="submit" value="搜索" />
										</td>
									</tr>
								</table>
							</form>

						</div>
						<div class='navibar-right'></div>
					</div>
					<div class='pagecontent'>
						
						<div style="padding: 10px;margin: 20px;">
							<div style="padding:10px; float: right; text-align:center; overflow: hidden;border:solid 1px skyblue;">
								<img width="175" height="240" src="<%=n.getICON() %>" alt="<%=n.getTITLE() %>" />
							</div>
							<div style="line-height: 30px;font-size: 16px;font-weight: bold;"><%=n.getTITLE() %></div>
							<div style="font-size:14px;line-height: 26px;"><%=n.getSUMMARY() %></div>
							<div style="font-size:14px;line-height: 200%;"><%=n.getCONTENT() %></div>
						</div>
					</div>		
					</td>
				</tr>
			</table>
		</div>
	</div>
	<jsp:include page="../include/bottom.jsp" />
</body>
</html>

